import request from '@/utils/request';
import type { loginForm } from './type';
enum API {
  LOGIN_URL = '/user/login',
  USERINFO_URL = '/user/info',
}
//登陆接口方法
export const reqLogin = (data: loginForm) => request.post<any,any>(API.LOGIN_URL, data);
//获取用户信息的方法
export const reqUserInfo = () => request.get<any,any>(API.USERINFO_URL);
